package day10.pack2;

public abstract class B {
    public abstract void method1();
    public void method2() {
        System.out.println("B method2");
    }

    public static void main(String[] args) {
        B b = new B() {
            public void method1() {
                System.out.println("hello world B");
            }
        };

        b.method1();
    }
}

